/**   
 * @Title: PasswordModifyCommunicater.java 
 * @Package com.esun.cheetah.biz.personal
 * @Description: 修改密码通讯
 * @author 程相亭
 * @date 2012-03-23 下午05:07:33  
 * Copyright (C) 2011 Shenzhen E-sun Sky Net Technology Co.,ltd.
 */
package com.esun.cheetah.biz.personal;

import java.util.HashMap;

import org.json.JSONException;

import android.os.Handler;

import com.esun.cheetah.biz.personal.personalinfo.UserInfo;
import com.esun.cheetah.config.BizCode;
import com.esun.cheetah.config.Key;
import com.esun.cheetah.network.AbsInferiorityCommunicater;

/**
 * @ClassName: PasswordModifyCommunicater
 * @Description:修改密码通讯类
 * @author 程相亭
 * @date 2012-03-23 下午05:07:33
 */
public class PasswordModifyCommunicater extends AbsInferiorityCommunicater {

	private String pwdOld;
	private String pwdNew;

	public PasswordModifyCommunicater(Handler handler, String pwdOld,
			String pwdNew) {
		super(handler);
		this.pwdNew = pwdNew;
		this.pwdOld = pwdOld;
	}

	@Override
	public HashMap<String, String> comHashMap() {
		HashMap<String, String> hmJson = new HashMap<String, String>();
		hmJson.put(Key.KEY_ID, BizCode.BIZCODE_PASSWORD_MODIFY);
		hmJson.put(Key.KEY_CK, UserInfo.getUserInfo().getCk());
		hmJson.put(Key.KEY_TYPE, Key.KEY_TYPE_ONE);
		hmJson.put(Key.KEY_PASSWORD, pwdOld);
		hmJson.put(Key.KEY_NEWPASSWORD, pwdNew);

		return hmJson;
	}

	/**
	 * @throws JSONException
	 * @Title: getJsonContent
	 * @Description: 解析json
	 * @param
	 * @return Object
	 * @throws
	 */
	@Override
	public void getJsonContent(String serverRes) throws JSONException {
	}
}
